#ifndef __ABZ_ENCODER_H
#define __ABZ_ENCODER_H

#include "main.h"

extern uint8_t encoder_angle_valid;
extern float speed_encoder;
extern float position_encoder;

void ABZEncoder_Init(void);

uint16_t Read_Encode(void);

void Set_Encoder_Zero(void);

float Cal_Encoder_Speed(void);

void TIM3_Init(void);

#endif // !__ABZ_ENCODER_H
